home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / intuition / setattrsa.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  75 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setattrsa.c,v 1.1 1996/08/28 17:55:36 digulla Exp $
  4.     $Log: setattrsa.c,v $
  5.     Revision 1.1  1996/08/28 17:55:36  digulla
  6.     Proportional gadgets
  7.     BOOPSI
  8.  
  9.  
  10.     Desc:
  11.     Lang: english
  12. */
  13. #include <clib/alib_protos.h>
  14. #include "intuition_intern.h"
  15.  
  16. /*****************************************************************************
  17.  
  18.     NAME */
  19.     #include <intuition/classusr.h>
  20.     #include <clib/intuition_protos.h>
  21.  
  22.     __AROS_LH2(ULONG, SetAttrsA,
  23.  
  24. /*  SYNOPSIS */
  25.     __AROS_LHA(APTR            , object, A0),
  26.     __AROS_LHA(struct TagItem *, tagList, A1),
  27.  
  28. /*  LOCATION */
  29.     struct IntuitionBase *, IntuitionBase, 108, Intuition)
  30.  
  31. /*  FUNCTION
  32.     Changes several attributes of an object at the same time. How the
  33.     object interprets the new attributes depends on the class.
  34.  
  35.     INPUTS
  36.     object - Change the attributes of this object
  37.     tagList - This is a list of attribute/value-pairs
  38.  
  39.     RESULT
  40.     Depends in the class. For gadgets, this value is non-zero if
  41.     they need redrawing after the values have changed. Other classes
  42.     will define other return values.
  43.  
  44.     NOTES
  45.     This function sends OM_SET to the object.
  46.  
  47.     EXAMPLE
  48.  
  49.     BUGS
  50.  
  51.     SEE ALSO
  52.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  53.     "Basic Object-Oriented Programming System for Intuition" and
  54.     "boopsi Class Reference" Dokument.
  55.  
  56.     INTERNALS
  57.  
  58.     HISTORY
  59.     29-10-95    digulla automatically created from
  60.                 intuition_lib.fd and clib/intuition_protos.h
  61.  
  62. *****************************************************************************/
  63. {
  64.     __AROS_FUNC_INIT
  65.     __AROS_BASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  66.     struct opSet ops;
  67.  
  68.     ops.MethodID     = OM_SET;
  69.     ops.ops_AttrList = tagList;
  70.     ops.ops_GInfo    = NULL;
  71.  
  72.     return (DoMethodA (object, (Msg)&ops));
  73.     __AROS_FUNC_EXIT
  74. } /* SetAttrsA */
  75.